package com.nwcl.ysx.service;


import com.nwcl.common.result.Page;
import com.nwcl.ysx.bo.SubscribeBO;
import com.nwcl.ysx.request.RoomSubPageRequest;

import java.util.List;

public interface SubscribeService {
    /*
     * @Description: 根据id,状态查询预约信息列表
     * @Author liguiqin
     * @Date 2023/5/26 11:00
     * @param: subscribeIds
     * @param: status
     * @return java.util.List<com.nwcl.ysx.bo.SubscribeBO>
     * @UpdateDate 2023/5/26 11:00
     **/
    List<SubscribeBO> listByIds(List<Integer> ids, Integer status);

    /*
     * @Description: 保存预约信息
     * @Author liguiqin
     * @Date 2023/5/26 13:58
     * @param: subscribeBO
     * @return subscribeId
     * @UpdateDate 2023/5/26 13:58
     **/
    Integer save(SubscribeBO subscribeBO);

    /*
     * @Description:预约信息分页查询
     * @Author liguiqin
     * @Date 2023/5/26 13:58
     * @param: param
     * @return com.nwcl.common.result.Page<com.nwcl.ysx.bo.SubscribeBO>
     * @UpdateDate 2023/5/26 13:58
     **/
    Page<SubscribeBO> page(RoomSubPageRequest param);

    /*
     * @Description: 获取用户预约次数
     * @Author liguiqin
     * @Date 2023/5/29 10:14
     * @param: userId
     * @return java.lang.Integer
     * @UpdateDate 2023/5/29 10:14
     **/
    Integer countByUserId(Integer userId);

    void updateStatusById(Integer id, Integer status);
}




